﻿@{
    ViewBag.Title = "Show";
    Layout = "~/Views/Shared/_Layout.cshtml";
    YJ.Data.Model.ShortMessage message = null;
    YJ.Platform.ShortMessage MSG = new YJ.Platform.ShortMessage();
    if (!WebMvc.Common.Tools.CheckLogin() && !YJ.Platform.WeiXin.Organize.CheckLogin())
    {
        Response.Write("未登录用户不能查看!");
        Response.End();
        return;
    }
    string id = Request.QueryString["id"];
    if (id.IsGuid())
    {
        message = MSG.Get(id.ToGuid());
    }
    if (message != null)
    {
        MSG.UpdateStatus(message.ID);
    }
    else
    {
        message = MSG.GetRead(id.ToGuid());
    }

    if (message == null)
    {
        Response.Write("未找到该消息!");
        Response.End();
        return;
    }
}

<form id="form1">
    <div>
    <div style="margin:10px">@Html.Raw(message.Contents)</div>
    <div>
       @Html.Raw(YJ.Platform.Files.GetFilesShowString(message.Files))
    </div>
    </div>
</form>
